module.exports = {
  title: 'Timeless',

  themeConfig: {
    nav: [
      {
        text: '基础',
        items: [
          { text: 'HTML', link: '/foundation/HTML/' },
          { text: 'CSS', link: '/foundation/CSS/' },
          { text: 'JavaScript', link: '/foundation/JavaScript/' },
          { text: '数据结构与算法', link: '/foundation/algorithm/' },
          { text: '设计模式', link: '/foundation/designPattern/' },
        ],
      },
      {
        text: '框架',
        items: [
          { text: 'Vue', link: '/framework/Vue/' },
          { text: 'React', link: '/framework/React/' },
        ],
      },
      {
        text: '大前端',
        items: [
          { text: 'Node.js', link: '/bfe/Node/' },
          { text: 'Koa.js', link: '/bfe/Koa/' },
          { text: 'Egg.js', link: '/bfe/Egg/' },
        ],
      },
      { text: 'Github', link: 'https://github.com/cuizaiyong' },
    ],
    sidebar: {
      sidebarDepth: 5,
      // 数据结构与算法
      '/foundation/algorithm/': [
        {
          title: '数据结构',
          path: '/foundation/algorithm/ds',
          collapse: false,
          children: [
            { title: '单链表', path: '/foundation/algorithm/ds/单链表' },
            { title: '双链表', path: '/foundation/algorithm/ds/双链表' },
            { title: '队列', path: '/foundation/algorithm/ds/队列' },
            { title: '栈', path: '/foundation/algorithm/ds/栈' },
            { title: '哈希表', path: '/foundation/algorithm/ds/哈希表' },
            { title: '堆', path: '/foundation/algorithm/ds/堆' },
            { title: '优先队列', path: '/foundation/algorithm/ds/优先队列' },
            { title: '字典树', path: '/foundation/algorithm/ds/字典树' }
          ],
        },
        {
          title: '算法',
          path: '/foundation/algorithm/practice',
          collapse: false,
          children: [
            {
              title: '排序',
              collapse: false,
              path: '/foundation/algorithm/practice/排序'
            },
            {
              title: '分治思想',
              path: '/foundation/algorithm/practice/分治思想',
            },
            {
              title: '动态规划',
              path: '/foundation/algorithm/practice/动态规划',
            },
          ],
        },
      ],
      // Vue框架
      '/framework/Vue': [
        {
          title: 'Vue源码分析',
          collapse: false,
          children: [
            { title: '数据驱动', collapse: false, children: [
              { title: '数据驱动', path: '/framework/Vue/source-analysis/数据驱动/数据驱动' },
              { title: '实例Vue', path: '/framework/Vue/source-analysis/数据驱动/实例Vue' }
            ]}
          ]
        }
      ]
    }
  },
  head: [
    [
      'script',
      { src: 'https://cdn.jsdelivr.net/npm/react/umd/react.production.min.js' },
    ],
    [
      'script',
      {
        src:
          'https://cdn.jsdelivr.net/npm/react-dom/umd/react-dom.production.min.js',
      },
    ],
    ['script', { src: 'https://cdn.jsdelivr.net/npm/vue/dist/vue.min.js' }],
    [
      'script',
      { src: 'https://cdn.jsdelivr.net/npm/@babel/standalone/babel.min.js' },
    ],
  ],
  plugins: ['demo-block']
};
